@layout("/common/_container.html",{css:["/assets/common/css/form.css"],plugins:["jq"],js:["/assets/modular/task/timetask/timetask_add.js"]}){
<div>
	<form id="timetaskForm" lay-filter="timetaskForm" class="layui-form model-form">
		<div class="layui-fluid">
			<div class="layui-card">
				<div class="layui-card-header">基本信息</div>
				<div class="layui-card-body">
					<input name="taskId" type="hidden"/>
					<div class="layui-form-item layui-row">
						<div class="layui-inline layui-col-md6">
							<label class="layui-form-label">任务组<span class="text-danger">*</span><i class="layui-icon tips">&#xe702;<span class="layui-tips">(20个英文字符)</span></i></label>
							<div class="layui-input-block">
								<input name="groupName" placeholder="请输入任务组" type="text" class="layui-input" lay-verify="required|grouplength" required/>
							</div>
						</div>
						<div class="layui-inline layui-col-md6">
							<label class="layui-form-label">任务名<span class="text-danger">*</span><i class="layui-icon tips">&#xe702;<span class="layui-tips">(80个英文字符)</span></i></label>
							<div class="layui-input-block">
								<input name="name" placeholder="请输入任务名" type="text" class="layui-input" lay-verify="required|namelength|checkname" required/>
							</div>
						</div>
						<div class="layui-inline layui-col-md6">
							<label class="layui-form-label">方法<span class="text-danger">*</span><i class="layui-icon tips">&#xe702;<span class="layui-tips">(80个英文字符)</span></i></label>
							<div class="layui-input-block">
								<input name="methodName" placeholder="请输入方法" type="text" class="layui-input" lay-verify="required|namelength" required/>

							</div>
						</div>
						<div class="layui-inline layui-col-md6">
							<label class="layui-form-label">参数<span class="text-danger">*</span><i class="layui-icon tips">&#xe702;<span class="layui-tips">(字符串或json)</span></i></label>
							<div class="layui-input-block">
								<input name="jobData" placeholder="请输入参数" type="text" class="layui-input" lay-verify="required" required/>

							</div>
						</div>
						<div class="layui-inline layui-col-md12">
							<label class="layui-form-label">实例bean<span class="text-danger">*</span><i class="layui-icon tips">&#xe702;<span class="layui-tips">(80个英文字符)</span></i></label>
							<div class="layui-input-block">
								<input name="beanName" placeholder="请输入实例bean" type="text" class="layui-input" lay-verify="required|namelength" required/>

							</div>
						</div>
						<div class="layui-inline layui-col-md12">
							<label class="layui-form-label">任务描述<span class="text-danger">*</span><i class="layui-icon tips">&#xe702;<span class="layui-textarea-tips">(500个字符或者250个中文字)</span></i></label>
							<div class="layui-input-block">
								<textarea name="description" placeholder="请输入任务描述" type="text/plain" class="layui-input" lay-verify="required|descriptionlength" required  style="height:100px" ></textarea>

							</div>
						</div>
					</div>
				</div>
			</div>

			<div class="layui-card">
				<div class="layui-card-header">执行规则</div>
				<div class="layui-card-body">
					<div class="layui-form-item layui-row">
						<div class="layui-inline layui-col-md6">
							<label class="layui-form-label">表达式<span class="text-danger">*</span><i class="layui-icon tips">&#xe702;<span class="layui-textarea-tips">(cron表达式，格式如下)</span></i></label>
							<div class="layui-input-block">
								<input name="cron" placeholder="请输入表达式" type="text" class="layui-input" lay-verify="required|cronrule" required/>
							</div>
						</div>
						<div class="layui-inline ">
							<button class="layui-btn layui-btn-danger" id="analysisCron"> 执行</button>
						</div>
						<div class="layui-inline layui-col-md6 layui-disabled" style="line-height: 21px">
						<pre ><code>
				*   *    *    *    *   *
				-    -    -    -   -   -
				|    |    |    |    |    |
				|    |    |    |    |    + year [optional]
				|    |    |    |    |
				|    |    |    |    +----- day of week (0 - 7) (Sunday=0 or 7)
				|    |    |    |
				|    |    |    +---------- month (1 - 12)
				|    |    |
				|    |    +--------------- day of month (1 - 31)
				|    |
				|    +-------------------- hour (0 - 23)
				|
				+------------------------- min (0 - 59)
						</code></pre>
						</div>
						<div class="layui-inline layui-col-md5" style="height: 300px;">
							<label class="layui-form-label">最近7次运行时间:</label>
							<table class="layui-table"  id="cronTable" lay-skin="nob">

							</table>
						</div>

					</div>


				</div>
			</div>

			<div class="layui-card">
				<div class="layui-card-header">附属信息</div>
				<div class="layui-card-body">
					<div class="layui-form-item layui-row">
						<div class="layui-inline layui-col-md3">
							<label class="layui-form-label">创建者<span style="color: red;">*</span></label>
							<div class="layui-input-block">
								<input  name="createUser" placeholder="请输入创建者id" type="text" class="layui-input layui-disabled" disabled/>
							</div>
						</div>
						<div class="layui-inline layui-col-md3">
							<label class="layui-form-label">创建时间<span style="color: red;">*</span></label>
							<div class="layui-input-block">
								<input id="createTime"  name="createTime" placeholder="请输入创建时间" type="text"  class="layui-input layui-disabled" disabled/>
							</div>
						</div>
						<div class="layui-inline layui-col-md3">
							<label class="layui-form-label">修改者<span style="color: red;">*</span></label>
							<div class="layui-input-block">
								<input  name="updateUser" placeholder="请输入修改者id" type="text"  class="layui-input layui-disabled" disabled/>
							</div>
						</div>
						<div class="layui-inline layui-col-md3">
							<label class="layui-form-label">修改时间<span style="color: red;">*</span></label>
							<div class="layui-input-block">
								<input id="updateTime" name="updateTime" placeholder="请输入修改时间" type="text"  class="layui-input layui-disabled" disabled/>
							</div>
						</div>
					</div>
				</div>
			</div>

		</div>

		<div class="form-group-bottom text-right">
			<!--  <button class="layui-btn layui-btn-primary" type="button" ew-event="closeDialog">取消</button> -->
			<button class="layui-btn" lay-filter="btnSubmit" lay-submit>保存</button>
			<button class="layui-btn layui-btn-primary" type="button" ew-event="closeDialog" id="backupPage">返回</button>
		</div>
	</form>
</div>
@}
